<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        function getMax(a,b){
            return a > b ? a : b;
        }
         function getMax1(a,b,c){
            let t  = getMax(a,b);
            return c > t ? c : t;
        }
        console.log('6.98和6.99相比:')
        console.log(getMax(6.98,6.99)+"最大");
        console.log('40,70,10相比:');
        console.log(getMax1(40,70,10)+"最大");
    </script>
</body>
</html>